package com.atguigu.test;

class Bank {

    double rate;
    double balance;
}
class Name{
    String id;
}


public class HTest2 {
    public static void main(String[] args) {
        Name na = new Name();
        Name na2 = new Name();
        na.id = "123";
        na2.id = "123";
        Bank ba = new Bank();
        Bank ba2 = new Bank();
        ba.balance = 168.1;
        ba2.balance = 446;
        Bank ra = new Bank();
        ba.rate = 0.032;
        System.out.println("账户名a:" + na.id);
        System.out.println("账户名a2:" + na2.id);
        System.out.println("账户一余额:" + ba.balance);
        System.out.println("账户二余额:" + ba.balance);
        System.out.println("利率：" + ba.rate);

    }
    }






